#!/bin/bash
#
# This file is part of SerialPundit.
# 
# Copyright (C) 2014-2018, Rishi Gupta. All rights reserved.
#
# The SerialPundit is DUAL LICENSED. It is made available under the terms of the GNU Affero 
# General Public License (AGPL) v3.0 for non-commercial use and under the terms of a commercial 
# license for commercial use of this software. 
#
# The SerialPundit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#################################################################################################

# Run this script as root user.

# After Apple default VCP driver (com.apple.driver.AppleUSBFTDI) has been UNloaded, this script
# is used to load drivers provided by FTDI. No reboot is required.

set -e
kextload /Library/Extensions/FTDIUSBSerialDriver.kext
echo "FTDIUSBSerialDriver VCP driver loaded !"

